package com.ruoyi.project.dataanalysis.service.Impl;

import com.ruoyi.project.dataanalysis.entity.*;
import com.ruoyi.project.dataanalysis.mapper.MainMapper;
import com.ruoyi.project.dataanalysis.service.ProblemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

/**
 * @author 范莹莹
 * @version 1.0
 */
@Service
public class ProblemsServiceImpl  implements ProblemsService {
    @Autowired
    MainMapper mainMapper;
    @Override
    public List<ProblemsQd> getProblemsQdList(Params params) {

        return mainMapper.selectAllproblemsByDateAndDw(params);
    }

    @Override
    public List<ProblemsTsl> getTslList(Params params) {
        return mainMapper.selectTslByDateAndDw(params);
    }

    @Override
    public List<ProblemsTop> getTopList(Params params) {
        return mainMapper.selectTopByDateAndDw(params);
    }

    @Override
    public List<ProblemsDetails> getTopDetailList(Params params) {
        return mainMapper.selectDetailsByTop(params);
    }

    @Override
    public List<ProblemsDw> getDwList() {
        return mainMapper.selectAllDw();
    }

    @Override
    public List<ProblemsDetails> getAllDetailList(Params params) {
        return mainMapper.selectDetailsByDateDw(params);
    }

    @Override
    public List<ProblemsDetails> selectSlqkByTradeId(String param) {
        return mainMapper.selectSlqkByTradeId(param);
    }

    @Override
    public List<ProblemsZB> selectTxzlZb(Params params) {
        return null;
    }

}
